 class Accout {
    private String accout;
    private int money;
    // 带参构造方法
    public Accout(String accout, int money) {
        this.accout = accout;
        this.money = money;
    }
     // Getter和Setter方法
     public String getAccout() {
         return accout;
     }
     public void setAccout(String accout) {
         this.accout = accout;
     }
     public int getMoney() {
         return money;
     }
     public void setMoney(int money) {
         this.money = money;
     }
}
public class Test {
    public static void main(String[] args) {
        // 使用带参构造方法创建对象
        Accout s= new Accout("lisi", 34555);
        System.out.println("账户: " +s.getAccout());
        System.out.println("余额: " + s.getMoney());

    }

}
